<template>
  <view class="container">
		<nav-ber :title="'二维码'" :bgColor="'#f7f8ff'"></nav-ber>
		<image style="width: 600rpx;height: 600rpx;margin: auto;" :src="urls" mode=""></image>
  </view>
</template>
<script>
	import request from '@/utils/request'
  export default {
    data() {
			return {
				keyword: '',
				ispro: '1',
				magList: [],
				urls: '',
			}
    },
		onShow() {
			// uni.showLoading({
			//   title: '加载中',
			//   mask: true,
			// 	duration: 10000
			// })
			// let _this = this
			// uni.request({
			// 	url: `https://api.weixin.qq.com/cgi-bin/token?appid=wx6f34f64a4d3caebe&secret=111509905fa8e850bf01d426cd2fad3a&grant_type=client_credential`,
			// 	method: 'GET',
			// 	success: res => {
			// 		uni.request({
			// 			url: `https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=${res.data.access_token}`,
			// 			method: 'POST',
			// 			responseType: 'arraybuffer',
			// 			data: {
			// 				path:"pages/register/index?agencyId=" + JSON.parse(uni.getStorageSync('userInfoRole')).id,
			// 			},
			// 			success: val => {
			// 				let urls = 'data:image/png;base64,' + uni.arrayBufferToBase64(val.data)
			// 				_this.urls = urls
			// 				uni.hideLoading()
			// 			},
			// 		})
			// 	},
			// })
		},
		methods: {
			
		}
  }
</script>
<style lang="scss" scoped>
	.container {
		background-color: #f7f8ff;
		display: flex;
		flex-direction: column;
		height: 100vh;
		overflow: hidden;
	}
	.province {
		flex: 1;
		overflow: scroll;
		padding: 0 20rpx;
		margin-top: 20rpx;
	}
	.mag_flex {
		width: 100%;
		display: flex;
		align-items: center;
		background-color: #fff;
		padding: 20rpx;
		box-sizing: border-box;
		border-radius: 15rpx;
		margin-bottom: 25rpx;
	}
	.mag_flex:first-child {
		margin-top: 20rpx;
	}
	.ico_bg {
		background-color: rgba(255, 169, 5, 0.1);
		width: 90rpx;
		height: 90rpx;
		border-radius: 50%;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-right: 20rpx;
		box-sizing: border-box;
	}
	.font_w {
		font-weight: 900;
	}
	.tit_flex {
		width: 100%;
		display: flex;
		justify-content: space-between;;
	}
	.text_sty {
		text-overflow: -o-ellipsis-lastline;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;					
		-webkit-box-orient: vertical;
	}
</style>
